<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/styles/css/default.css" />
<title>修改个人信息</title>

</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="t">
  <tr>
    <td class="t_left"></td>
    <td class="t_bg">修改个人信息</td>
    <td class="t_right"></td>
  </tr>
</table>
<!-- 

	
 -->
<s:form action="userinfo!sub.action" namespace="/user" >
	<table cellpadding="1" cellspacing="1"  class="tableInput" align="center" width="600">
		<s:if test="user.id != null">
			<s:hidden name="user.id"/>
			<s:hidden name="user.name"/>
			<s:hidden name="user.userType"/>
		</s:if>
		<s:if test="hasErrors()">
			<s:if test="hasFieldErrors()">
				<tr align="center">
					<td class="textError"><font color="red" size="4"><s:fielderror/></font></td>
					<td class="tableHeader2"></td>
				</tr>
			</s:if>
			<s:if test="hasActionErrors">
				<tr align="center">
					<td class="textError"><font color="blue"><s:actionerror/></font></td>
					<td class="tableHeader2"></td>
				</tr>
			</s:if>	
		</s:if>
		<tr>
			<td width="15%" class="tableHeader2"><s:label>账户名 </s:label></td>
			<td class="tableHeader3"><s:property value="user.name"/></td>
			<td width="15%" class="tableHeader2"><s:label>账户类别 </s:label></td>
			<td class="tableHeader3"><s:select name="user.userType" disabled="true" id="accountType" list="userTypes"/></td>
		</tr>
		<tr>
			<td class="tableHeader2"><s:label>性别 </s:label></td>
			<td class="tableHeader3"><s:radio name="user.userInfo.sex" list="#{1:'男',0:'女'}" ></s:radio></td>
			<td class="tableHeader2"><s:label>邮箱 </s:label></td>
			<td class="tableHeader3"><s:textfield name="user.userInfo.email" size="30" validate="{type:'email', config:{allowBlank:false}}"></s:textfield> </td>
		</tr>
		<tr>
			<td class="tableHeader2"><span class="fontred">*</span><s:label>用户名</s:label></td>
			<td class="tableHeader3"><s:textfield name="user.userInfo.name" size="30" validate="{type:'required'}"></s:textfield> </td>
			<td colspan="2" class="tableHeader3"></td>
		</tr>
		<tr>
			<td class="tableHeader2"><s:label>手机 </s:label></td>
			<td class="tableHeader3"><s:textfield name="user.userInfo.mobile" size="30"></s:textfield></td>
			<td class="tableHeader2"><s:label>固定电话 </s:label></td>
			<td class="tableHeader3"><s:textfield name="user.userInfo.tel" size="30"></s:textfield> </td>
		</tr>
		<tr><td class="tableHeader3" colspan="4">
			<div align="center">
				<s:submit cssClass="btn_Text2" value="确  定" ></s:submit>
   			</div>
		</td></tr>
	</table>
	
</s:form>
</body>
</html>